Page({
  data: {
    point: '',
    building: '',
    rooms: [],
  
  },
  onLoad({point,building}){
    
    this.fake(point,building)
  },
  fake(point,building){
    const size=Math.floor(Math.random()*5)+4
    const rooms=[]
    for(let i=0;i<size;i++){
      const floor=Math.floor(Math.random()*19)+1
      const No = Math.floor(Math.random() * 2) + 1
      const room = [floor, 0, No].join('')
      if(rooms.includes(room)) return
      rooms.push(room)
    }
 this.setData({ rooms, point, building })
   
  }
})